package com.kitty.game.rank.controller;

import com.kitty.game.rank.message.ReqWorldBossLife;
import com.kitty.game.rank.message.ReqWorldBossRank;
import com.kitty.game.rank.service.RankDaRiService;
import com.kitty.mina.annotation.RequestMapping;
import org.apache.mina.core.session.IoSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class RankDaRiController {
    @Autowired
    RankDaRiService rankDaRiService;

    /**查看世界boss排行榜*/
    @RequestMapping
    public void viewBossRank(IoSession session, ReqWorldBossRank reqWorldBossRank) {
        rankDaRiService.viewBossRank(session,  reqWorldBossRank);
    }

    /**查看世界boss排行榜*/
    @RequestMapping
    public void viewBossLife(IoSession session, ReqWorldBossLife reqWorldBossRank) {
        rankDaRiService.viewBossLife(session,  reqWorldBossRank);
    }
}
